calculate the depth with the corrected real_cell_area and don't subtract
authorKristian Rietveld <kris@gtk.org>
Sat, 24 Mar 2007 14:40:11 +0000 (14:40 +0000)
committerKristian Rietveld <kristian@src.gnome.org>
Sat, 24 Mar 2007 14:40:11 +0000 (14:40 +0000)
2007-03-24  Kristian Rietveld  <kris@gtk.org>

* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
calculate the depth with the corrected real_cell_area and don't
subtract horizontal_separator/2.

svn path=/trunk/; revision=17562

ChangeLog
gtk/gtktreeviewcolumn.c

index 9907ef432e8ed69d3ef793b47a7eda5e70d34848..71e3b55dfaeaeadc112adcee3b08d1627bc29e0d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-03-24  Kristian Rietveld  <kris@gtk.org>
+
+       * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
+       calculate the depth with the corrected real_cell_area and don't
+       subtract horizontal_separator/2.
+
 2007-03-24  Andreas Nilsson <andreas@andreasn.se>
 
        * gtk-yes.png
index 12e3942f202b4c8cea56986446b2f63bb34b3e1e..154bd22576af4b658d70ef077e428256953d73cb 100644 (file)
@@ -2695,15 +2695,15 @@ gtk_tree_view_column_cell_process_action (GtkTreeViewColumn  *tree_column,
   real_background_area = *background_area;
 
 
-  if (rtl)
-    depth = real_background_area.width - real_cell_area.width - horizontal_separator/2;
-  else
-    depth = real_cell_area.x - real_background_area.x - horizontal_separator/2;
-
   real_cell_area.x += focus_line_width;
   real_cell_area.y += focus_line_width;
   real_cell_area.height -= 2 * focus_line_width;
 
+  if (rtl)
+    depth = real_background_area.width - real_cell_area.width;
+  else
+    depth = real_cell_area.x - real_background_area.x;
+
   /* Find out how much extra space we have to allocate */
   for (list = tree_column->cell_list; list; list = list->next)
     {